function Ajax(url:string,callback:any){
    const xhr=new XMLHttpRequest();
    xhr.open('post',url)
    xhr.send()
    xhr.onreadystatechange=()=>{
        if(xhr.status===200&&xhr.readyState===4){
            callback(JSON.parse(xhr.response))
        }
    }
}